import 'package:json_annotation/json_annotation.dart';
import 'user.dart';
import 'relation.dart';
part 'follow_model.g.dart';

@JsonSerializable()
class FollowModel {
  final User? user;
  final Relation? relation;
  @JsonKey(defaultValue: '')
  final String bio;

  const FollowModel({
    this.user,
    this.relation,
    required this.bio,
  });

  factory FollowModel.fromJson(Map<String, dynamic> json) =>
      _$FollowModelFromJson(json);

  Map<String, dynamic> toJson() => _$FollowModelToJson(this);
}







